SuperStrict
Import arm.box2d

Local rayCastInput:b2RayCastInput = New b2RayCastInput
Local rayCastInput2:b2RayCastInput = New b2RayCastInput

rayCastInput2.Create(Vec2(10.0, 20.0), Vec2(30.0, 40.0), 50.0)

rayCastInput.Set(Vec2(60.0, 70.0), Vec2(80.0, 90.0), 100.0)

Local p1:b2Vec2 = New b2Vec2
Local p2:b2Vec2 = New b2Vec2
Local maxFraction:Float

rayCastInput2.Copy(rayCastInput)
rayCastInput.Get(p1, p2, maxFraction)

Print p1.X() + " " + p1.Y() + " | " + p2.X() + " " + p2.Y() + " | " + maxFraction

Print rayCastInput.p1().X() + " " + rayCastInput.p1().Y() + " | " + rayCastInput.p2().X() + " " + rayCastInput.p2().Y() + " | " + rayCastInput.maxFraction()

rayCastInput.SetP1(Vec2(1, 2))
rayCastInput.SetP2(Vec2(3, 4))
rayCastInput.SetMaxFraction(5)

rayCastInput.Get(p1, p2, maxFraction)
Print rayCastInput.p1().X() + " " + rayCastInput.p1().Y() + " | " + rayCastInput.p2().X() + " " + rayCastInput.p2().Y() + " | " + rayCastInput.maxFraction()
